package io.renren.modules.yst.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import io.renren.common.utils.PageUtils;
import io.renren.modules.sys.entity.SysUserEntity;
import io.renren.modules.yst.entity.WorkerCardEntity;
import io.renren.modules.yst.entity.WorkerCardRecordEntity;
import io.renren.modules.yst.vo.CheckRecordVo;
import io.renren.modules.yst.vo.RecordByCarVo;
import io.renren.modules.yst.vo.RecordByDateVo;

import java.util.List;
import java.util.Map;

/**
 * 运输工作单
 *
 * @author lazyrm
 * @email lazyrm0720@gmail.com
 * @date 2022-01-07 21:01:22
 */
public interface WorkerCardRecordService extends IService<WorkerCardRecordEntity> {

    PageUtils queryPage(Page<CheckRecordVo> page, QueryWrapper<CheckRecordVo> queryWrapper);

    PageUtils queryPage(Map<String, Object> params);


    PageUtils queryPage(Map<String, Object> params, String orderby, boolean isAsc);

    void create(WorkerCardEntity workerCard, SysUserEntity user);

    List<RecordByDateVo> queryCountByDate(String startDate, String endDate);

    List<RecordByCarVo> queryCountByCarNumber(String startDate, String endDate);

    List<RecordByDateVo> queryCountByDate(String format, String startDate, String endDate);
    PageUtils queryPageForManager(Page<CheckRecordVo> page, QueryWrapper<CheckRecordVo> queryWrapper);
}

